package persistance.implementation;

import persistance.interfaces.IPersonDao;
import model.Person;

@Deprecated
public class PersonDaoImpl implements IPersonDao {
	private final IPersonDao mPersonDao;
	
	
	public PersonDaoImpl(IPersonDao personDao) {
		this.mPersonDao = personDao;
	}
	
	@Override
	public boolean exists(Person person) {
		return this.mPersonDao.exists(person);
	}

	@Override
	public Person getPersonByName(String personName) {
		return this.mPersonDao.getPersonByName(personName);
	}

	@Override
	public boolean save(Person person) {
		return this.mPersonDao.save(person);
	}

	@Override
	public void delete(Person person) {
		this.mPersonDao.delete(person);
	}

}
